package com.mypg;

import java.sql.Timestamp;

public class Comment {
    private int comment_id;
    private int user_id;
    private int question_id;
    private String comment_des;
    private Timestamp comment_time;
    private int comment_value;

    public Comment(){}
    public Comment(int comment_id, int user_id, int question_id, String comment_des, Timestamp comment_time, int comment_value) {
        this.comment_id = comment_id;
        this.user_id = user_id;
        this.question_id = question_id;
        this.comment_des = comment_des;
        this.comment_time = comment_time;
        this.comment_value = comment_value;
    }

    public int getComment_id() {
        return comment_id;
    }

    public void setComment_id(int comment_id) {
        this.comment_id = comment_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getQuestion_id() {
        return question_id;
    }

    public void setQuestion_id(int question_id) {
        this.question_id = question_id;
    }

    public String getComment_des() {
        return comment_des;
    }

    public void setComment_des(String comment_des) {
        this.comment_des = comment_des;
    }

    public Timestamp getComment_time() {
        return comment_time;
    }

    public void setComment_time(Timestamp comment_time) {
        this.comment_time = comment_time;
    }

    public int getComment_value() {
        return comment_value;
    }

    public void setComment_value(int comment_value) {
        this.comment_value = comment_value;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", user_id=" + user_id +
                ", question_id=" + question_id +
                ", comment_des='" + comment_des + '\'' +
                ", comment_time=" + comment_time +
                ", comment_value=" + comment_value +
                '}';
    }
}
